home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / dexter.swf / scripts / DefineButton2_468 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2003-10-24  |  808 b   |  37 lines

  1. on(press){
  2.    if(!(eval("/:mode") != "2" and _name eq "i5"))
  3.    {
  4.       tellTarget("/soundgotit")
  5.       {
  6.          gotoAndPlay(2);
  7.       }
  8.       set("/:item",_name.substr("2","3"));
  9.       set("/:have" add eval("/:hnow"),eval("/:item"));
  10.       set("/:hnow",eval("/:hnow") + "1");
  11.       tellTarget("/menu")
  12.       {
  13.          gotoAndStop("show");
  14.          play();
  15.       }
  16.       set("/:found",_name.substr("2","3"));
  17.       tellTarget("/found")
  18.       {
  19.          gotoAndPlay(2);
  20.       }
  21.       set("/:mn","1");
  22.       if(eval("/:found") == "4")
  23.       {
  24.          set("/:last","0");
  25.       }
  26.       if(eval("/:found") == "2")
  27.       {
  28.          set("/:gotxray","1");
  29.       }
  30.       if(eval("/:found") == "5")
  31.       {
  32.          set("/:gotbattery","1");
  33.       }
  34.       gotoAndStop(4);
  35.    }
  36. }
  37.